package com.telecom.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAdvice {
    //@Before 前置通知("execution(* com.telecom.aop.UserService.*())")
    //切点execution(* com.telecom.aop.UserService.*())
    //访问修饰符  <返回值类型>  包名类名  <方法名>(参数)  异常
    @Before("execution(* com.telecom.aop.*.save(..))")
    public void before() {
        System.out.println("前置通知执行");
    }
}
